﻿<!DOCTYPE html>

<html>
<head>
    @RenderSection("seo", required: false)
    @Html.Partial("_Css")

</head>
<body>
    <div id="header" class="hidden-phone">
        <div class="top">
            <div class="logo">
                <div class="logo_right">
                    <a id="aPCLogo" href="@Url.Action("Index","Home",new{Th.ProjectId,Area=""})" title="">
                        <img id="imgPCLogo" src="~/images/logo.png" style="width:100px;height:50px" class="img-responsive">
                    </a>
                </div>
            </div>
            <div class="top1">
                <div class="dh">
                    <div id="navigation_bar" class="navigation_bar" mb="false">
                        <ul id="top_top_navigation_bar_ui" class="ui">
                            <li>
                                <a href="@Url.Action("Index","Home",new{Th.ProjectId,Area=""})">
                                    <div class="menu_flags" id="menu_flags_b">
                                        <span class="item_flag item_flag">
                                            <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
                                            前台
                                        </span>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="@Url.Action("List", "Project", new {Area = "Admin"})">
                                    <div class="menu_flags" id="menu_flags_b">
                                        <span class="item_flag item_flag">
                                            <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                            網站列表
                                        </span>
                                    </div>
                                </a>
                            </li>
                            @if ((Th.User?.IsAdmin).GetValueOrDefault())
                            {
                                <li>
                                    <a href="@Url.Action("List", "User", new { Area = "Admin" })">
                                        <div class="menu_flags" id="menu_flags_b">
                                            <span class="item_flag item_flag">
                                                <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                用戶列表
                                            </span>
                                        </div>
                                    </a>
                                </li>
                            }
                            <li>
                                @if (Th.IsLogin)
                                {
                                    <a href="@Url.Action("LogOut", "Account", new {Area = ""})">
                                        <div class="menu_flags" id="menu_flags_b">
                                            <span class="item_flag item_flag">
                                                <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                [@Th.User.LoginName]登出
                                            </span>
                                        </div>
                                    </a>
                                }
                                else
                                {
                                    <a href="@Url.Action("Login", "Account", new {Area = ""})">
                                        <div class="menu_flags" id="menu_flags_b">
                                            <span class="item_flag item_flag">
                                                <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                登錄
                                            </span>
                                        </div>
                                    </a>
                                }

                            </li>
                        </ul>
                    </div>
                </div>
                <!--導航   E-->
            </div>
        </div>
    </div>
    <div class="container">
        @RenderBody()
    </div>
    @Html.Partial("_Js")
    @RenderSection("script", required: false)
    @Html.Partial("_EndJs")
</body>
</html>
